<template>
	<view>
		<view style="width:90%;margin:35px auto;" id="panel">
			<view class="row">
				<view class="col1">昵称</view>
				<view class="col2">手机号</view>
				<view class="col3">商户</view>
			</view>
			<view v-if="tuijianrens.length > 0">
				<view class="row" v-for="(item ,i) in tuijianrens" :key="item.id">
					<view class="col1">{{item.usersName}}</view>
					<view class="col2">{{item.usersPhone}}</view>
					<view class="col3">{{item.status==2 ? '是' : '否'}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tuijianrens:[],//推荐人集合
				// nick:'', //推荐人昵称
				// phone:'',//推荐人手机号
				// isMerchant:'',//推荐人是否为商户
			}
		},
		onLoad() {
			this.$http.get('/gzh/tuijianrenxcx',{
				userid:uni.getStorageSync('usersId')
			}).then(res => {
				if(res.data.code==200){
					this.tuijianrens = res.data.data
				}
			})
		},
		methods: {
			
		}
	}
</script>

<style>
	#panel .col1{
		width:150px;text-align:center;height:25px;line-height:25px;border-right:1px solid orange;flex-shrink: 0;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;
	}
	#panel .col2{
		flex-grow: 3;text-align:center;border-right:1px solid orange;height:25px;line-height:25px;flex-shrink: 0;
	}
	#panel .col3{
		width:35px;text-align:center;height:25px;line-height:25px;flex-shrink: 0;
	}
	#panel .row{
		width:100%;height:25px;;border:1px solid orange;display:flex;flex-shrink: 0;
	}
</style>
